Repository navigation
macOS: autostart as a login item so Settings shows the Weave icon - #2
Merged
Merged
Conversation
The LaunchAgent of tauri-plugin-autostart points at the bare executable inside Weave.app, so System Settings > Login Items listed it with the generic 'exec' icon. SMAppService.mainApp registers the app bundle itself. A login item gets no --autostart argument, so the launch Apple Event (keyAELaunchedAsLogInItem) now decides whether to start quietly in the tray. An existing LaunchAgent is migrated once on startup. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W9t7Fewxv7bsWJPobVEtpS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
System Settings → General → Login Items listed Weave with the generic "exec" icon. The cause is that tauri-plugin-autostart (
MacosLauncher::LaunchAgent) writes a LaunchAgent pointing at the bare executable insideWeave.app.src-tauri/src/login_item.rsregisters Weave.app itself viaSMAppService.mainApp(macOS 13+; the minimum here is 14). It should appear under "Open at Login" with the app icon.--autostartargument. The launch Apple Event (kAEOpenApplicationwithkeyAELaunchedAsLogInItem) now tells the app it started at login, so it stays quietly in the tray. The argument check stays as a fallback.Test plan
login_item.rson its own:cargo clippy --target aarch64-apple-darwinagainst objc2 0.6.5, no warningsGenerated by Claude Code